﻿using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using WpfAppTest.Dao;

namespace WpfAppTest.ViewModels
{
    public class HistoryViewModel : BindableBase
    {
        public HistoryViewModel()
        {
            tClassTest = new ClassTest();
        }
        private ClassTest _tClassTest;
        public ClassTest tClassTest
        {
            get { return _tClassTest; }
            set { SetProperty(ref _tClassTest, value); }
        }
        private DelegateCommand<string> _CCF;

        public DelegateCommand<string> CCF =>
        _CCF ?? (_CCF = new DelegateCommand<string>(
        (p) =>
        {
            //tClassTest.Content = "历史模式";
            MessageBox.Show(tClassTest.Content);
            HistoryDao _historyDao = new HistoryDao();

        }));

    }
}
